<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百度 AI and Map</title>
    <script src="http://api.map.baidu.com/api?type=webgl&v=1.0&ak=LLRDcuPOXIqsiNrQzhWboYBUq5w1eVHh"></script>
</head>
<body>
    <script src="./utils.js"></script>
    <script>
        // Protacol http://  基于应答 响应式的协议    request response
        //Domain  aip.map.baidu.com   二级域名
        //Path /api 
        //QueryString
        let url = "http://api.map.baidu.com/api?type=webgl&v=1.0&ak=LLRDcuPOXIqsiNrQzhWboYBUq5w1eVHh";
        let qsResult = getQueryStringObj(url);
        console.log(qsResult);
        //分步   1.QueryString   
        //let qs = url.split('?')[1];
        //console.log(url.indexOf('?'));
        
        //console.log(arrKey)
        
        //console.log(qs,'-------');
        
        //2.取出type ak


    </script>
</body>
</html>